package org.macpro.alone.server.contain;

import java.util.List;
import java.util.Vector;

import org.macpro.alone.prisist.dao.OrganizationDaoInter;
import org.macpro.alone.prisist.domain.AloneOrganization;

public class OrganizationManagerImpl implements OrganizationManagerInter{
	private OrganizationDaoInter  organizationDao;
	private static final List<AloneOrganization> OrganizationList=new Vector<AloneOrganization>();
	public String getConfigValue(String key) {
		// TODO Auto-generated method stub
		return null;
	}

	public boolean initConfig() {
		// TODO Auto-generated method stub
		return false;
	}

	public boolean refreshConfigMap() {
		// TODO Auto-generated method stub
		return false;
	}

	/* (non-Javadoc)
	 * @see org.macpro.alone.server.contain.dd$deleteEntity(java.lang.String)
	 */
	public void deleteEntity(String entity) {
		// TODO Auto-generated method stubFd
		organizationDao.deleteEntity(organizationDao.getEntity(entity));
	}

	/* (non-Javadoc)
	 * @see org.macpro.alone.server.contain.dd$editEntity(org.macpro.alone.prisist.domain.AloneOrganization)
	 */
	public void editEntity(AloneOrganization entity) {
		// TODO Auto-generated method stub
		organizationDao.editEntity(entity);
	}

	public List<AloneOrganization> getAllEntity() {
		// TODO Auto-generated method stub
		return null;
	}

	public int getAllListNum() {
		// TODO Auto-generated method stub
		return 0;
	}

	/* (non-Javadoc)
	 * @see org.macpro.alone.server.contain.dd$getEntity(java.lang.String)
	 */
	public AloneOrganization getEntity(String id) {
		// TODO Auto-generated method stub
		return organizationDao.getEntity(id);
	}

	/* (non-Javadoc)
	 * @see org.macpro.alone.server.contain.dd$insertEntity(org.macpro.alone.prisist.domain.AloneOrganization)
	 */
	public void insertEntity(AloneOrganization entity) {
		// TODO Auto-generated method stub
		organizationDao.insertEntity(entity);
	}

	

	public static List<AloneOrganization> getorganizationList() {
		return OrganizationList;
	}

	public OrganizationDaoInter getorganizationDao() {
		return organizationDao;
	}

	public void setorganizationDao(OrganizationDaoInter organizationDao) {
		this.organizationDao = organizationDao;
	}

}
